package com.sisgh.jefdv1.core.jdbc.table;

import lombok.Data;

import java.util.List;

/**
 * 表
 */
@Data
public class Table {

    public static final String NAME = "TABLE_NAME";

    // table name
    private String name;

    // table column
    private List<Column> columns;

    Table() {}

    @Override
    public String toString() {

        StringBuilder sb = new StringBuilder();
        sb.append("Table [name=").append(name).append("]\n");

        for (Column column : columns) {
            sb.append("\t").append(column.toString()).append("\n");
        }

        return sb.toString();
    }
}
